package com.meilai.project.entity.business.sale;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.core.bean.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 销售分组表
 * </p>
 *
 * @author xhy
 * @since 2022-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("bill_sale_group")
@ApiModel(value = "BillSaleGroup对象", description = "销售分组表")
public class BillSaleGroup extends SuperEntity {

    @ApiModelProperty(value = "分组名称")
    private String name;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime created_at;

    @ApiModelProperty("创建人")
    private Long created_by;

    @ApiModelProperty(value = "是否满额")
    private Boolean full_payment;

    @ApiModelProperty("0：发票未收到 1：发票已收到")
    private Boolean invoice_received;
}
